<div class="container">
    <h2 class="titulo">Fotos<a class="logo-titulo" href="<?php bloginfo('url'); ?>" title="Inicio"></a></h2>
    <div class="categorias">
        <h3><a href="<?php bloginfo('url'); ?>?cat=10">Albums</a></h3>
        <hr style="margin-bottom: 10px;"/>
        <ul>
            <?php $albums = get_posts('category=' . get_cat_ID('fotos')); ?>

            <?php foreach ($albums as $album) { ?>
                <li><a href="<?php echo $album->guid; ?>"><?php echo '- ' . $album->post_title; ?></a></li>
            <?php } ?>
        </ul>
        <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2Fel-rito%2F47970452727&amp;width=235&amp;height=400&amp;show_faces=true&amp;colorscheme=light&amp;stream=false&amp;border_color&amp;header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:235px; height:400px;" allowTransparency="true"></iframe>
    </div>

    <div class="cuerpo-fotos">

        <?php if (have_posts()) : ?>
            <?php while (have_posts()): the_post() ?>
                <div class="albums">

                    <a class="fotos-titulo" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php reducir_cadena(get_the_title(), 30) ?></a>
                    <?php if (get_the_post_thumbnail(get_the_ID())) { ?>
                    <div class="fotos-imagen"><a href="<?php echo get_permalink();?>"><?php the_post_thumbnail('post-thumbnail'); ?></a></div>
                    <?php } else { ?>
                        <div class="fotos-imagen"><a href="<?php echo get_permalink(); ?>"><img src="<?php bloginfo('template_url');?>/images/sinFoto.png" alt="Sin imagen"/></a></div>
                    <?php } ?>
                </div>
            <?php endwhile; ?>
        <?php else : ?>
            <?php echo 'No se han encontrado albumes para mostrar.'; ?>
        <?php endif; ?>
    </div>

</div>